import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/pay',
    name: '支付',
    component: () => import(/* webpackChunkName: "about" */ '../views/Pay.vue')
  },
  {
    path: '/payFinsh',
    name: '支付完成',
    component: () => import(/* webpackChunkName: "about" */ '../views/PayFinish.vue')
  },
  {
    path: '/payAfter',
    name: '支付完成后',
    component: () => import(/* webpackChunkName: "about" */ '../views/PayAfter.vue')
  }
]

const router = new VueRouter({
  routes,
})

export default router
